# skip exercise 6 due to long running time (run it manually)
SURNAME := tremurici
MTRNR := 11907086

report:
	pandoc report.md -V fontsize:12pt -V geometry:"top=2cm, bottom=2cm" -o report.pdf

submission: $(EXERCISES) report
	rm -f $(SURNAME)-$(MTRNR).zip
	$(foreach i, $(shell seq 1 3), cp exercise$i.dfy $(SURNAME)-$(MTRNR)-$i.dfy;)
	mv report.pdf $(SURNAME)-$(MTRNR).pdf
	zip -r $(SURNAME)-$(MTRNR).zip $(SURNAME)-$(MTRNR)*

clean:
	rm -f *.out *.txt *.zip *.pdf

.PHONY: submission report
